Skip to content

fix: [FEATURE] Add keyboard shortcut for jump-to-search - #1134

Merged
ritik4ever merged 1 commit into
ritik4ever:mainfrom
bigdeen02:solver/issue-854-89-a0
Sep 6, 2026
Merged

fix: [FEATURE] Add keyboard shortcut for jump-to-search#1134
ritik4ever merged 1 commit into
ritik4ever:mainfrom
bigdeen02:solver/issue-854-89-a0

Conversation

@bigdeen02

Copy link
Copy Markdown

Summary

The jump-to-search keyboard shortcut feature was already fully implemented in the codebase:

  1. App.tsx (lines 277-300): A global keydown listener handles the / key to focus the search input via searchInputRef.current?.focus(). It returns early when focus is inside an INPUT, TEXTAREA, SELECT, or contentEditable element, so the shortcut doesn't interfere with normal typing.

  2. ShortcutsHelpOverlay.tsx (line 11): The / shortcut is already listed in the SHORTCUTS array with description "Focus the search bar".

  3. Shortcut-conflict checks: A search for "conflict" in the codebase found no existing conflict-check mechanisms to update.

Since the feature was already present but untested, I added test coverage in App.keyboard-a11y.test.tsx with a new "jump-to-search keyboard shortcut" describe block that verifies:

  • Pressing / from outside a text field focuses the search input
  • Pressing / while focus is inside a text input types the character normally without re-triggering the shortcut

Changed files

  • frontend/src/App.keyboard-a11y.test.tsx

Test plan

Run the frontend test suite, specifically:

  • npx vitest run frontend/src/App.keyboard-a11y.test.tsx to verify the new jump-to-search shortcut tests pass
  • npx vitest run frontend/src/ShortcutsHelpOverlay.test.tsx to verify the overlay still lists the / shortcut
  • Full npx vitest run to ensure no regressions

This PR was created as a draft by the issue solver bot. It will remain a
draft until repository CI passes.

Closes #854

@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@issue-solver-bot is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@bigdeen02 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@bigdeen02
bigdeen02 marked this pull request as ready for review August 29, 2026 10:21
@bigdeen02

Copy link
Copy Markdown
Author

@ritik4ever Hi! This PR is open and ready for review — happy to address any feedback. Thanks!

@ritik4ever
ritik4ever merged commit b740fd8 into ritik4ever:main Sep 6, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add keyboard shortcut for jump-to-search

3 participants